package com.yimixian.app.cart;

import com.yimixian.app.model.GoodsItem;

import android.graphics.Bitmap;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.ImageView;

public interface GoodsItemPresenter {

    void setQuantity(int quantity);

    void setButtonListener(ButtonListener listener);

    int getGoodsItemId();

    interface ButtonListener {
        boolean onPlusButtonClicked(int goodsId);

        void onMinusButtonClicked(int goodsId);
    }

    interface OnPlusButtonClickListener {
        void onPlusButtonClick(View plusView, Point point, Bitmap animBack);
    }

    interface OnGoodsQuantityChangedListener {
        void onGoodsQuantityChanged();

        boolean checkGiftGoods(GoodsItem item);
    }

}
